//package com.example.security.bean;
//
//import com.example.entity.SysUser;
//import org.springframework.security.core.GrantedAuthority;
//import org.springframework.security.core.userdetails.User;
//
//import java.util.Collection;
//
///**
// * Project:CustomUser
// * Description: 自定义用户实体类
// * Created by:王骁 wangxiao5@asiainfo-sec.com
// * Created at:2024/10/10 15:45
// */
//public class CustomUser extends User {
//    private SysUser sysUser;
//
//    public CustomUser(SysUser sysUser, Collection<? extends GrantedAuthority> authorities) {
//        super(sysUser.getName(), sysUser.getPassword(), authorities);
//        this.sysUser = sysUser;
//    }
//
//    public SysUser getSysUser() {
//        return sysUser;
//    }
//
//    public void setSysUser(SysUser sysUser) {
//        this.sysUser = sysUser;
//    }
//}
//
